package com.yidu.service.impl;

import com.yidu.dao.BlogsUserMapper;
import com.yidu.domain.BlogsUser;
import com.yidu.service.BlogsUserService;
import com.yidu.vo.BlogsUserVo;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.Date;

/**
 * <p>@author 陈子睿</p>
 * <p>@Date: 2021/1/20</p>
 * <p>@Time: 20:21</p>
 * <p>@Description: 用户，登录注册</p>
 */
@Service
public class BlogsUserServiceImpl implements BlogsUserService {
    @Resource
    BlogsUserMapper mapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(BlogsUser record) {
        return 0;
    }

    @Override
    public int insertSelective(BlogsUserVo vo) {
        BlogsUser po = new BlogsUser();
        //copy对象
        BeanUtils.copyProperties(vo,po);
        return mapper.insertSelective(po);
    }

    @Override
    public BlogsUser selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(BlogsUser record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(BlogsUser record) {
        return 0;
    }
}
